import request from '@/router/axios';

export const getList = (params) => {
  return request({
    url: '/api/xmbz-order/addedServices/list',
    method: 'get',
    params
  })
}

// 新增
export const saveAddedServices = (data) => {
  return request({
    url: '/api/xmbz-order/addedServices/save',
    method: 'post',
    data
  })
}

// 更新
export const updateAddedServices = (data) => {
  return request({
    url: '/api/xmbz-order/addedServices/update',
    method: 'post',
    data
  })
}

// 删除
export const deleteAddedServices = (data) => {
  return request({
    url: '/api/xmbz-order/addedServices/delete',
    method: 'post',
    data
  })
}

// 审批
export const restoreLink = (data) => {
  return request({
    url: '/api/xmbz-order/addedServices/restoreLink',
    method: 'post',
    data
  })
}

// 未处理增值服务数量
export const addedUpWindowCount = (params) => {
  return request({
    url: '/api/xmbz-order/addedServices/addedUpWindowCount',
    method: 'get',
    params
  })
}

// 未处理增值服务
export const addedUpWindowList = (params) => {
  return request({
    url: '/api/xmbz-order/addedServices/addedUpWindowList',
    method: 'get',
    params
  })
}

// 增值订单被拒绝统计
export const addedRefuseCount = (params) => {
  return request({
    url: '/api/xmbz-order/addedServices/addedRefuseCount',
    method: 'get',
    params
  })
}

// 增值订单被拒绝列表
export const addedRefuseList = (params) => {
  return request({
    url: '/api/xmbz-order/addedServices/addedRefuseList',
    method: 'get',
    params
  })
}

// 增值服务确认处理
export const addedConfirmDispose = (data) => {
  return request({
    url: '/api/xmbz-order/addedServices/addedConfirmDispose',
    method: 'post',
    data
  })
}